﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Gx.Common.Core
{
    public class EntityHelper
    {
        public static string GetTableName(Type type)
        {
            TableAttribute property = (TableAttribute)(type.GetCustomAttributes(false)[0]);
            return property.Name;
        }
    }
}
